package com.example.binpacking.service.Impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.binpacking.mapper.SubjectViewMapper;
import com.example.binpacking.model.SubjectView;
import com.example.binpacking.service.SubjectViewService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;

@Service
public class SubjectViewServiceImpl extends ServiceImpl<SubjectViewMapper, SubjectView> implements SubjectViewService {
        @Autowired
        private SubjectViewMapper subjectViewMapper;
        public Page<SubjectView> getBySubjectPage(BigDecimal loginid, BigDecimal finishiflag, int current, int size) {
            return subjectViewMapper.selectByIdAndFinishflag(new Page<>(current, size), loginid, finishiflag);
        }
    }


